/* process.env.NODE_ENV设置生产环境模式 */
const companyName = "启邦"
const appIcon = 'logo.png'
const iosDownUrl = 'https://www.pgyer.com/qibanApp' //ios下载地址
let commonUrl = "qibang2024.gnway.vip:9974" //本地外网
// let commonUrl = "192.168.1.100:5010" //本地内网


// const companyName = "智子"
// const appIcon = 'zhizi.png'
// const iosDownUrl = 'https://www.pgyer.com/zhiziApp' //ios下载地址
// let commonUrl = "sophon.fortiddns.com:5009" //智子正试
// let commonUrl = "sophon.fortiddns.com:5019" //智子测试

// const companyName = "顶钧"  
// const appIcon = 'DingJun.png'
// let commonUrl = "erpvn.mibtech.com:5000" //顶钧正式
// let commonUrl ="183.239.185.170:3010"//顶钧测试

// const companyName = "甘纳"
// const appIcon = 'ganan.png'
// let commonUrl = "ganna.gnway.vip:53654" //甘纳正式

// const companyName = "富登" //公司名
// const appIcon = 'fudeng.png' //登录显示的LOGO
// const iosDownUrl = 'https://www.pgyer.com/ios_App' //ios下载地址
// let commonUrl = "foxsky.gnway.vip:30291" //富登正式

// const companyName = "江西" //公司名
// const appIcon = 'jiangxi.png' //登录显示的LOGO
// const iosDownUrl = 'https://www.pgyer.com/jiangxi_App' //ios下载地址
// let commonUrl = "121.40.218.23:5000" //江西正式

// const companyName = "道润" //公司名
// const appIcon = 'jiangxi.png' //登录显示的LOGO
// const iosDownUrl = 'https://www.pgyer.com/jiangxi_App' //ios下载地址
// let commonUrl = "223.82.117.54:5000" //道润正式


let httpUrl = `http://${commonUrl}`
// #ifndef MP
const baseURL = process.env.NODE_ENV === "production" ?
	"https://app.java.jnpfsoft.com" : httpUrl // 接口前缀
const define = {
	baseURL: httpUrl,
	webSocketUrl: `ws://${commonUrl}/api/message/websocket`,
	comUploadUrl: baseURL + '/api/file/Uploader/',
	timeout: 100000,
	report: baseURL + '/Report',
	appIcon: appIcon,
	companyName: companyName,
	iosDownUrl: iosDownUrl
}
// #endif

// #ifdef MP
const baseURL = httpUrl // "https://app.java.jnpfsoft.com" 
const define = {
	baseURL: baseURL,
	webSocketUrl: "ws://${commonUrl}/api/message/websocket", //"ws://app.java.jnpfsoft.com/api/message/websocket"
	comUploadUrl: baseURL + '/api/file/Uploader/',
	timeout: process.env.NODE_ENV === 'production' ? 1000000 : 1000000,
	report: baseURL + '/Report',
	companyName: companyName
}
// #endif
export default define